#ifndef NETWORKMESSENGER_H
#define NETWORKMESSENGER_H

#include "NetworkBase.h"
#include "NetworkMessage.h"
#include "NetworkDefinitions.h"
#include "../EventSystem/Event.h"

class ClientMessenger
{
public:
	static void Broadcast(NetworkMessage& _netMsg);
	static void JoinGame(NetworkMessage& _netMsg);
	static void PlayerMove(NetworkMessage& _netMsg, Event* _event);
};

class ServerMessenger
{
public:
	static void Connect(NetworkMessage& _netMsg);
	static void Full(NetworkMessage& _netMsg);
};

bool IsSequenceMoreRecent(unsigned char _sequenceNumber1, unsigned char _sequenceNumber2);
void WriteMessageHeader(NetworkMessage& _netMsg, NetworkHeader& _netHeader);

#endif